passthrough: don't use open coded IO-APIC accesses
authorJan Beulich <jbeulich@novell.com>
Tue, 16 Aug 2011 14:05:30 +0000 (15:05 +0100)
committerJan Beulich <jbeulich@novell.com>
Tue, 16 Aug 2011 14:05:30 +0000 (15:05 +0100)
commit71abd26c352d6876f60050a2c624dc60e2ac01e3
tree4d58dc321ccdee8e557e614dd0d183487c88b898
parent94ea0622c5b88e5a0513cff512d90130f504cfbe
passthrough: don't use open coded IO-APIC accesses

This makes the respective functions quite a bit more legible.

Since this requires fiddling with __ioapic_{read,write}_entry()
anyway,
make them and their wrappers have their argument types match those of
__io_apic_{read,write}() (int -> unsigned int).

No functional change intended.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/io_apic.c
xen/drivers/passthrough/amd/iommu_intr.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/utils.c
xen/drivers/passthrough/vtd/vtd.h
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h
xen/include/asm-x86/io_apic.h